import request from '@/utils/request'

// 查询定制管理列表
export function listCustomization(query) {
  return request({
    url: '/clothing/customization/list',
    method: 'get',
    params: query
  })
}

// 查询定制管理详细
export function getCustomization(id) {
  return request({
    url: '/clothing/customization/' + id,
    method: 'get'
  })
}

// 新增定制管理
export function addCustomization(data) {
  return request({
    url: '/clothing/customization',
    method: 'post',
    data: data
  })
}

// 修改定制管理
export function updateCustomization(data) {
  return request({
    url: '/clothing/customization',
    method: 'put',
    data: data
  })
}

// 删除定制管理
export function delCustomization(id) {
  return request({
    url: '/clothing/customization/' + id,
    method: 'delete'
  })
}
